Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

early return on reentry in ack_packet #235

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

jthomas43
Copy link
Contributor

If a stream is closed during the callback write->on_ack then clear_outgoing_packets acks all writes and frees all packets. On reentry we may try to ack one of these closed writes again, triggering an assert in on_bytes_acked

this PR adds a check to see if the stream is closed on re-entry so that we do not try to re-acknowledge a closed write.

@mafintosh mafintosh merged commit 03ff1f4 into holepunchto:main Dec 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants